home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_PICT / Testing / hex_tests / pat=set2=bw.hex < prev    next >
Text File  |  1995-06-12  |  3KB  |  84 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. 01 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 30 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %
  11. %    This test set seeks to demonstrate that more 'special' opcodes
  12. %    for bitmaps, polygons, regions, and thickly framed shapes work as
  13. %    they should with patterns.
  14. %    This test confirms that they work with basic B&W patterns
  15. %
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17.  
  18. 02 0008 142A 552A 1408        % back pat (grey diamonds)
  19. 09 7789 8f8f 7798 f8f8            % pen pat (the black dimpled circles one)
  20. 0A 8244 3944 8201 0101        % fill pat
  21.  
  22.  
  23. % paint a region
  24. 81 0028 0090 0010 00F0 0070
  25.     0090 0040 0050 7FFF
  26.     00C0 0010 0070 7FFF
  27.     00F0 0010 0040   0050 0070 7FFF
  28.     7FFF
  29.  
  30.  
  31. % fill a hexagonal polygon
  32. 74 0026 0080 0080 00F0 00F0
  33.     0080 00A0
  34.     0080 00D0
  35.     00C0 00F0
  36.     00F0 00D0
  37.     00F0 00A0
  38.     00C0 0080
  39.     0080 00A0
  40.  
  41.  
  42. % set a thick pen size
  43. 07 0010 0008
  44.  
  45. % thickly Frame a rectangle
  46. 30 0010 0080 0050 00D0
  47.  
  48.  
  49. % Include a bitmap, to confirm it is not affected
  50.  
  51. 90
  52. 0004            % rowbytes
  53. 0000 0050 0018 0070    % bounds  (t l b r)
  54. 0000 0050 0018 0069    % source rect
  55. 0010 0020 0028 0039    % dest rect
  56. 0001        % mode
  57. 00 7F 00 00    % bit data (unpacked)
  58. 03 80 E0 00
  59. 06 00 30 00
  60. 08 00 08 00
  61. 10 00 04 00
  62. 20 00 02 00
  63. 60 00 03 00
  64. 40 00 01 00
  65. 40 00 81 00
  66. 80 03 80 80
  67. 83 00 00 80
  68. 80 00 00 80
  69. 80 00 00 80
  70. 80 00 30 80
  71. 80 00 20 80
  72. 40 00 21 00
  73. 40 00 C1 00
  74. 63 07 83 00
  75. 20 F8 02 00
  76. 10 00 04 00
  77. 08 00 08 00
  78. 06 00 30 00
  79. 03 80 E0 00
  80. 00 7F 00 00
  81.  
  82.  
  83. FF    % end
  84.